package com.aldobucchi.mouse
{
	
	import flash.display.Stage;
	import flash.geom.Point;
	
	import com.aldobucchi.utils.App;
	
	
	
	public class MouseUtil
	{

	
	
		/**
		 * 
		 * @return 
		 * 		A point representing the mouse on stage coords or null if it could
		 * 		not be tracked.
		 * 
		 */	
		public static function getMousePointOnStage( ):Point
		{
			try{
				var stage:Stage = App.app.stage;
				return new Point( stage.mouseX, stage.mouseY );			
			}catch( e:Error ){}
			return null;
		}
	
	
	}
	
	
}